package ch0300;

public class Square extends Shape{
	public int a,b;
	public Square(int x,int y) {
		a=x;
		b=y;
	}
	public float area() {

		float s=(float) (a*b);
		System.out.println("长宽分别为"+a+","+b+"的长方形面积为："+s);
		return s;
		
	}
}
